Attendance, late departure
Set a late departure exception when an OUT punch exceeds the specified number of minutes after the end of a shift
Details
Rule Type
Time
Execution
After punch
Parameters
Name | DataType | DefaultValue | Description |
---|---|---|---|
MinutesLate | integer | The number of minutes after the end of a shift to declare a worker as late departed |
Decision Tree
Rule processing begins in the cell R1:Level1 and proceeds right/down. Any IF statement which results in a DONE step terminates the rule immediately.
Line# | Level1 | Level2 | Level3 | Comment |
---|---|---|---|---|
1 | Start | |||
2 | IF(PUNCH_ACTION(Description ) != OUT ) → | ↓ | ||
3 | ↓ | DONE | ||
4 | IF(CALC(scheduled.day ) = 0 ) → | ↓ | If no scheduled hours, can't leave late | |
5 | ↓ | DONE | ||
6 | SET(minlate = TIME_DIFF_MINUTES(SCHEDULE(StopTime ), EffectiveTime )) | Calculate the number of minutes late; this will return positive if the punch time is after the shift end, or negative if before | ||
7 | IF(minlate < MinutesLate ) → | ↓ | If within the allowed threshold, not a late departure | |
8 | ↓ | DONE | ||
9 | SET( = SET_EXCEPTION(LL )) | Set the left late exception (LL is the Code from the Exceptions app) | ||
10 | DONE |